package com.lwj.mapper.configuration;

import com.lwj.model.configuration.DepartmentRoleMenu;
import com.lwj.vo.configuration.DepartmentRoleMenuVo;
import com.lwj.vo.system.MenuVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DepartmentRoleMenuMapper {
    int deleteByPrimaryKey(String departmentRoleMenuId);

    int insert(DepartmentRoleMenu record);

    int insertSelective(DepartmentRoleMenu record);

    DepartmentRoleMenu selectByPrimaryKey(String departmentRoleMenuId);

    int updateByPrimaryKeySelective(DepartmentRoleMenu record);

    int updateByPrimaryKey(DepartmentRoleMenu record);

    List<DepartmentRoleMenuVo> menuTreeByRoleId(@Param("departmentRoleId") String departmentRoleId);

    void saveList(@Param("saveList") List<DepartmentRoleMenu> saveList);
}
